
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import extend_store from '@/store'
import extend_api from '@/static/js/api.js'
import extend_http from '@/static/js/http'
import extend_host from '@/static/js/host'
import extend_mixin from '@/static/js/mixin.js'
import extend_router from "@/static/js/enum/router.js"
import extend_enum from "@/static/js/enum/common.js"

Vue.config.productionTip = false

Vue.prototype.$store = extend_store;
Vue.prototype.$api = extend_api;
Vue.prototype.$http = extend_http;
Vue.prototype.$host = extend_host.host;
Vue.prototype.$promised = extend_http.toPromise;
Vue.prototype.$getRouter = extend_router;
Vue.prototype.$getEnum = extend_enum.get;
Vue.mixin(extend_mixin);

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif